/**
 * 某侦擦队接到一项紧急任务，要求A、B、C、D、E、F六个队员尽可能多挑若干人，满足以下限制条件
 * 1. A和B两人中至少去一人
 * 2. A和D不能一起去
 * 3. A、E和F三人中要派去两个去
 * 4. B和C都去或都不去
 * 5. C和D两人中去一个
 * 6. 若D不去，则E也不去
 * 问应当让哪几个人去
 *
 * 题解：
 * 根据题意可得 1便是参加，0便是不参加则
 *  1.  a + b > 1
 *  2.  a + d !=2
 *  3.  a + e + f == 2
 *  4.  b + c == 2 or b + c == 0
 *  5.  c + d == 1
 *  6.  d + e == 0 or d == 1
 */

#include <stdio.h>

int main()
{
    for (int a = 1; a >= 0; a--)
    {
        for (int b = 1; b >= 0; b--)
        {
            for (int c = 1; c >= 0; c--)
            {
                for (int d = 1; d >= 0; d--)
                {

                    for (int e = 1; e >= 0; e--)
                    {
                        for (int f = 1; f >= 0; f--)
                        {
                            if ((a + b >= 1) && (a + d != 2) && (a + e + f == 2) && (b + c == 0 || b + c == 2) && (c + d == 1) && (d + e == 0 || d == 1))
                            {
                                printf("A will %s be assigned.\n", a ? "" : "not");
                                printf("B will %s be assigned.\n", b ? "" : "not");
                                printf("C will %s be assigned.\n", c ? "" : "not");
                                printf("D will %s be assigned.\n", d ? "" : "not");
                                printf("E will %s be assigned.\n", e ? "" : "not");
                                printf("F will %s be assigned.\n", f ? "" : "not");
                            }
                        }
                    }
                }
            }
        }
    }
}